package cn.bandeqing.shortMessage.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 短信 实体类。
 *
 * @author fugui
 * @since 2023-11-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_short_message", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
public class ShortMessage extends BaseEntity {

    /**
     * 短信ID
     */
    @Id(keyType = KeyType.Auto)
    private Long smId;

    /**
     * 短信手机号
     */
    private String smPhone;

    /**
     * 短信内容
     */
    private String smContent;

    /**
     * 供应商类型
     */
    private Integer smProviderType;

    /**
     * 仅验证码短信
     */
    private String smCode;

    /**
     * 是否送达
     */
    private Boolean smArrive;

    /**
     * 是否验证 仅限验证码
     */
    private Boolean smCheck;

}
